# Contributor: Guillaume Quintard <guillaume.quintard@gmail.com>
# Maintainer: Guillaume Quintard <guillaume.quintard@gmail.com>
pkgname=varnish-modules
pkgver=0.20.0
pkgrel=1
pkgdesc="collection of modules for varnish"
url="https://github.com/varnish/varnish-modules"
arch="all"
license="BSD-2-Clause"
_vversion="7.1.0"
makedepends="autoconf automake gcc libtool make py3-docutils python3
	varnish-dev~=$_vversion"
depends="varnish~=$_vversion"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/varnish/varnish-modules/releases/download/$pkgver/varnish-modules-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var/lib
	make
}

check() {
	make check  -k VERBOSE=1
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e63d6da8f63a5ce56bc7a5a1dd1a908e4ab0f6a36b5bdc5709dca2aa9c0b474bd8a06491ed3dee23636d335241ced4c7ef017b57413b05792ad382f6306a0b36  $pkgname-$pkgver.tar.gz
"
